<?php
define('ROOT_PATH', dirname(__FILE__));
// $yii = ROOT_PATH . '/../framework/yii.php';
$yii = ROOT_PATH . '/../framework/yiilite.php';
$config = ROOT_PATH . '/protected/config/main.php';	

$domain = 'http://' . $_SERVER['HTTP_HOST'];
if($_SERVER['SERVER_PORT'] != '80'){
	$domain .= ':' . $_SERVER['SERVER_PORT']; 
}
define('SERVER_DOMAIN', $domain);

$duoec_config = require_once ROOT_PATH . '/protected/config/duoec.php';
foreach ($duoec_config as $key => $val){
	define($key, $val);
}

require_once($yii);
Yii::createWebApplication($config)->run();